// Add sldl codes for SD districts using district names 

// source: Census Gazeteer, 2010 and 2014
// https://www.census.gov/geographies/reference-files/time-series/geo/gazetteer-files.2014.html#list-tab-264479560

// note: called in statelegislators.do

replace sldl="28" if sldlname=="28-A"   & fstate==46 & year==2007
replace sldl="28" if sldlname=="28-B"  & fstate==46 & year==2007

replace sldl="26" if sldlname=="26-A"   & fstate==46 & year==2012
replace sldl="26" if sldlname=="26-B" & fstate==46 & year==2012
replace sldl="28" if sldlname=="28-A"   & fstate==46 & year==2012
replace sldl="28" if sldlname=="28-B" & fstate==46 & year==2012


replace sldl="26" if sldlname=="26-A"   & fstate==46 & year==2017
replace sldl="26.5" if sldlname=="26-B" & fstate==46 & year==2017
replace sldl="28" if sldlname=="28-A"   & fstate==46 & year==2017
replace sldl="28.5" if sldlname=="28-B" & fstate==46 & year==2017

//replace sldl="1.5" if sldl=="17" & sab=="SD"
